﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BookInfoExtractor
{
    public interface IObjectXmlMapper
    {
        /// <summary>
        ///     Export object to XML.
        /// </summary>
        /// <param name="uidObject"></param>
        /// <returns></returns>
        byte[] Export(object uidObject);

        /// <summary>
        ///     Imports object from XML.
        /// </summary>
        /// <param name="xmlFile"></param>
        /// <param name="typeToMap"></param>
        /// <returns></returns>
        object Import(byte[] xmlFile, Type typeToMap);
    }
}
